﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pub.DBUtility
{
    public class clsGetConnectString
    {
        /// <summary>
        /// 无密码连接字符串
        /// </summary>
        /// <param name="p_strName"></param>
        /// <returns></returns>
        public  string GetStringWithOutPwd(string p_strName)
        {
            // 解密操作 再次添加
            string str = " Data Source={0};Version=3;";
            return string.Format(str, p_strName);
        }
        /// <summary>
        /// 有密码连接字符串
        /// </summary>
        /// <param name="p_strName"></param>
        /// <returns></returns>
        public string GetStringWithPwd(string p_strName)
        {
            // 解密操作 再次添加
            string str = " Data Source={0};Version=3;Password=Guoch";//默认密码
            return string.Format(str, p_strName);
        }


    }
}
